<?php

require_once dirname(__FILE__).'/../lib/silaboGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/silaboGeneratorHelper.class.php';

/**
 * silabo actions.
 *
 * @package    sistema_estadisticas
 * @subpackage silabo
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class silaboActions extends autoSilaboActions
{

	public function executeShow(sfWebRequest $request)
	{
		$this->silabo = SilaboTable::getInstance()->fetchOne($request->getParameter('id'));
		$this->forward404Unless($this->silabo);
	}

	public function executeEdit(sfWebRequest $request)
	{
		$this->silabo = SilaboTable::getInstance()->fetchOne($request->getParameter('id'));
		$this->form = $this->configuration->getForm($this->silabo);
	}

}
